﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shop.Core.Domain.Catalog;
using Shop.Core.Domain.Customers;

namespace Shop.Core.Domain.Orders
{
    public partial class OrdersFactory
    {
        public static Order CreateOrder(Customer customer)
        {
            Order order = new Order();
            order.BelongTo(customer);
#if DEBUG
            order.CreatedBy = -9999;
#else
             order.CreatedBy = Customer.CurrentCustomer.Id;
#endif

            return order;
        }
    }
}
